{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">
        {include file='course_comment/index_search'}
    </caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap' >课程</th>
        <th class='text-left nowrap' >用户名</th>
        <th class='text-left nowrap' >评论内容</th>
        <th class='text-left nowrap' >评论星级</th>
        <th class='text-left nowrap' >创建时间</th>
        <th class='text-left nowrap' >操作</th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}
    <tr data-dbclick>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
        <td class='text-left nowrap'>{$vo.course_name|default=''}</td>
        <td class='text-left nowrap'>{$vo.user_name|default=''}</td>
        <td class='text-left nowrap'>{$vo.content|default=''}</td>
        <td class='text-left nowrap'>{$vo.star|default='0'}</td>
        <td class='text-left nowrap'>{$vo.create_time|default=''}</td>
        <td class='text-left nowrap'>
            <div class=" margin-bottom-5">
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('del')}" data-value="id#{$vo.id}">删 除</a>            </div>
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}